package com.zzl.boot.bigevent.anno;

import com.zzl.boot.bigevent.validation.sateValidation;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Documented
@Constraint(
        validatedBy = {sateValidation.class}
)
@Target( ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface State {
    //校验失败的提示信息
    String message() default "state只能为“已发布”或“草稿”";
    //分组信息
    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
